/*
 * 整个项目api的管理
 */
import request from './request'
export default {
  //home组件 左侧表格数据获取
  getTableData(params) {
    return request({
      url: '/home/getTableData',
      method: 'get',
      data: params,
      mock: true
    })
  },
  getCountData(params) {
    return request({
      url: '/home/getCountData',
      method: 'get',
      data: params,
      mock: true
    })
  },
  getEchartsData(params) {
    return request({
      url: '/home/getEchartsData',
      method: 'get',
      data: params,
      mock: true
    })
  },
  getUserData(params) {
    return request({
      url: '/user/getUser',
      method: 'get',
      mock: 'false',
      data: params
    })
  },
  addUser(params) {
    return request({
      url: '/user/add',
      method: 'post',
      mock: 'false',
      data: params
    })
  }
}
